#include <arpa/inet.h>

#include "utils.h"

std::string inet_ntostring(uint32_t ip)
{
    char buf[INET_ADDRSTRLEN + 1];

    return inet_ntop(AF_INET, &ip, buf, INET_ADDRSTRLEN);
}
